<template>
  <div>
    <input type="text" v-bind:value="msg" ref="msgInputEle" @input="getMsgInput">
  </div>
</template>

<script>
export default {
  data(){
    return{
      msg:''
    }
  },
  methods:{
    getMsgInput(){
      this.msg=this.$refs.msgInputEle.value
    }
  }
}
</script>

<style>

</style>